<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0, width=device-width"/>
	<title>api</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../css/buyRecord.css" />
</head>
<style>
.goods{
	display: block;
	position: relative;
	width: 100%;
	overflow: auto;
}
.goods .z-gds-btnDis {
    background: #CCC;
    box-shadow: none;
}
.goods .z-gds-btn {
	float:right;
	margin-right:10px;
    padding: 0 15px;
    line-height: 25px;
    color: #fff;
    display: inline-block;
    background: #F60;
    border-radius: 3px;
    margin-right: 5px;
    box-shadow: 1px 1px 1px #D3D3D3;
}
</style>

<body >
<script id="winRecord-template" type="text/x-dot-template">	
	
	
	
	{{if(it==''){}}
		<div style='padding-top: 40px;color: #999;text-align: center;'>该用户还没有获奖记录！</div>
	{{}}}
	{{ for(var i=0; i< it.length; i++) { }}
			{{if(it.uid==it[i].q_uid){}}
			<dd class="win-item" onclick="openHeader('myGoodsStatus',{{=it[i].id}})">
			{{}else{}}
				<dd class="win-item" onclick="openGoodsDetail({{=it[i].id}})">
			{{}}}
				<div class="item-top align-items">
					<div class="item-img">
						<img src="http://wap.jqmao.cn/statics/uploads/{{=it[i].thumb}}" width="82px" height="82px">
					</div>
					<div class="item-content">
						<div class="content-txt win-txt">
							<p class="title">(第{{=it[i].qishu}}期){{=it[i].title}}</p>
							<p class="gray">共需：{{=it[i].zongrenshu}}人次</p>
							<p class="gray">本期参与：{{=it[i].totalVisitors}}人次</p>
							<p class="gray">幸运号码：<span class="red">{{=it[i].q_user_code}}</span></p>
							<p class="gray">揭晓时间：<span>{{=it[i].q_end_time}}</span></p>
						</div>
					</div>
				</div>
				
			</dd>
			<dt class='goods'>
				{{if(it.uid==it[i].q_uid){}}
						{{if(it[i].defaultAddress!='Y'){}}
						<a onclick="openHeader('addressList','',{{=it[i].q_uid}})" class="z-gds-btn z-gds-btnDis">设置默认地址</a>
						{{}else{}}
							{{if(it[i].orderStatus=='1'){}}
								<a class="z-gds-btn z-gds-btnDis">备货中</a>
							{{}else if(it[i].orderStatus=='2'){}}
								<a class="z-gds-btn z-gds-btnDis">已发货</a>
							{{}else if(it[i].orderStatus=='3'){}}
								<a class="z-gds-btn z-gds-btnDis">已完成</a>
							{{}}}
						{{}}}
				{{}}}
			</dt>
			
	{{}}}
</script>

	<div id='buyRecord'>
		<dl id='winRecord-content'>
			
		</dl>
	</div>

</body>
	<script type="text/javascript" src="../script/zepto.min.js"></script>

	<script type="text/javascript" src="../script/api.js"></script>
	
	<script src='../script/swipe.js'></script>
	<script type="text/javascript" src="../script/doT.min.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/winRecord.js"></script>

</html>